﻿using System;
using DuckGame1._0.Duck;

namespace DuckGame1._0
{
    class Program
    {
        static void Main(string[] args)
        {
            //野鸭子
            var ya = new MallardDuck();
            Console.WriteLine(ya.Display()+" "+ya.Swim()+
                " "+ya.flyBehavior.Fly()+" "+ya.QuackBehavior.Quack());

            //旱鸭子
            var ha =new RedHeadDuck();
            Console.WriteLine(ha.Display() + " " + ha.Swim() +
                " " + ha.flyBehavior.Fly() + " " + ha.QuackBehavior.Quack());

            //铁木头鸭子
            var tm = new WodenDuck();
            Console.WriteLine(tm.Display() + " " + tm.Swim() +
                " " + tm.flyBehavior.Fly() + " " + tm.QuackBehavior.Quack());

            //变形鸭子
            var b = new Tranform();
            Console.WriteLine(b.Display() + " " + b.Swim() +
                " " + b.flyBehavior.Fly() + " " + b.QuackBehavior.Quack());
        }
    }
}
